<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let table=['tw',"唐玮","tjh","何彩霞"];
        for(let i in table){//这里的i取的是序号，不是值
            console.log(table[i]);
        }
        console.log("________________________两种方法");
        for(let i=0;i<table.length;i++){
            console.log(table[i]);
        }
    console.log("_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+");

   for (const i of table) { //这里直接取的是值！
         console.log(i);    //打印值就行
   }
   console.log("++++++++++++++++++++++++++++++");
   for (const str of "唐玮真他妈的帅！") {
       console.log(str); //字符串操作
   }
       
    </script>
</body>
</html>